from urllib import request

url = "https://hotel.qunar.com/cn/beijing_city/dt-2010?fromDate=2021-02-19&toDate=2021-02-20&highQuality=true"
header = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36'}
req = request.Request(url, headers = header)
text = request.urlopen(req).read().decode()
print(text)

